#这个还没写完
#本意是将原有的CutoutMixup以及其余几种增强方式进行统一
#目前是将其色域进行变换
import math
import random
import cv2
import numpy as np
import torch
import time
import torchvision.transforms as transforms
import torch.backends.cudnn as cudnn
from utils.augmentations import Albumentations, CenterCrop, ToTensor
from utils.dataloaders import IMG_FORMATS, VID_FORMATS, LoadImages, LoadStreams

if __name__ == "__main__":
    image0 = cv2.imread("test0.png")
    transfs = transforms.ToTensor()
    img_tensor = transfs(image0)
    to_img = transforms.ToPILImage()
    im = to_img(img_tensor)

    now = time.strftime("%Y%m%d%H%M%S",time.localtime(time.time()))
    im.save(f'{now}.jpg')